import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useCityStore = defineStore('cityStore', () => {
  const city = ref('北京')
  const changeCity = (name) => {
    city.value = name
  }
  return { city, changeCity }
}, {
  persist: true,
})
